Class symantec.itools.awt.image.DarkenFilter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.image.DarkenFilter

Object
   |
   +----ImageFilter
           |
           +----RGBImageFilter
                   |
                   +----symantec.itools.awt.image.DarkenFilter

public class DarkenFilter
extends RGBImageFilter
An Image filter to use for darkening an Image a specified percentage.

Version:
1.1, July 8, 1997
Author:
Symantec

Variable Index

 o errors
Error strings.
 o percent
The percentage to fade when filtering.

Constructor Index

 o symantec.itools.awt.image.DarkenFilter()
Constructs a default DarkenFilter.
 o symantec.itools.awt.image.DarkenFilter(double)
Constructs a DarkenFilter.

Method Index

 o filterRGB(int, int, int)
Filters an RGB value by the current fade percentage.
 o getPercent()
Gets the percentage to fade when filtering.
 o setPercent(double)
Sets the percentage to fade when filtering.

Variables

 o errors
protected transient java.util.ResourceBundle errors
Error strings.

 o percent
protected double percent
The percentage to fade when filtering.

See Also:
getPercent, setPercent

Constructors

 o DarkenFilter
public DarkenFilter()
Constructs a default DarkenFilter. By default the Image is darkened 50%.

See Also:
DarkenFilter(double), setPercent
 o DarkenFilter
public DarkenFilter(double percent)
Constructs a DarkenFilter.

Parameters:
percent - the percent to darken the image when filtering.
See Also:
DarkenFilter(), setPercent

Methods

 o filterRGB
public int filterRGB(int x,
                     int y,
                     int rgb)
Filters an RGB value by the current fade percentage.

Parameters:
x - unused
y - unused
rgb - the rgb value to fade
Returns:
the faded rgb value
Overrides:
filterRGB in class RGBImageFilter
 o getPercent
public double getPercent()
Gets the percentage to fade when filtering.

Returns:
the percentage to fade.
See Also:
setPercent
 o setPercent
public void setPercent(double percent) throws IllegalArgumentException
Sets the percentage to fade when filtering.

Parameters:
percent - the percentage to fade.
Throws: IllegalArgumentException
if the specified percentage value is unacceptable
See Also:
getPercent

All Packages  Class Hierarchy  This Package  Previous  Next  Index